# Copyright 2009 The Go Authors. All rights reserved.
# Use of this source code is governed by a BSD-style
# license that can be found in the LICENSE file.

include $(GOROOT)/src/Make.inc

TARG=golf
GOFILES=golf.go golfToken.go golfLine.go

include $(GOROOT)/src/Make.pkg

all: main

main: $(TARG).a 
	6g main.go
	6l -o main main.6

$(TARG).a: _obj/$(TARG).a
	cp _obj/$(TARG).a .

clean: mainclean

mainclean:
	rm -f $(TARG).a
